Skip to content

[CALCITE-7441] AggregateFilterToFilteredAggregateRule fails when WHERE condition is nullable#4836

Open
zabetak wants to merge 1 commit intoapache:mainfrom
zabetak:CALCITE-7441
Open

[CALCITE-7441] AggregateFilterToFilteredAggregateRule fails when WHERE condition is nullable#4836
zabetak wants to merge 1 commit intoapache:mainfrom
zabetak:CALCITE-7441

Conversation

@zabetak
Copy link
Member

@zabetak zabetak commented Mar 13, 2026

Jira Link

CALCITE-7441

Changes Proposed

Modify rule to wrap nullable condition using the IS TRUE operator when transforming to filtered aggregate. The same logic exists when doing the SQL to RelNode conversion.

Copy link
Member

@asolimando asolimando left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Copy link
Member

@xiedeyantu xiedeyantu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants